package descentFly.data {
	import descentFly.away3D4.Background.df_bgSky;
	import descentFly.away3D4.Background.df_bgSpace;
	import descentFly.away3D4.Generator.df_monsterGenerator;
	import descentFly.away3D4.action.df_action;
	import descentFly.away3D4.action.df_actionRotate;
	import descentFly.away3D4.action.df_dir;
	import descentFly.away3D4.action.df_moving;
	import descentFly.away3D4.chips.df_chip3DS;
	import descentFly.away3D4.chips.df_chipAway;
	import descentFly.away3D4.chips.df_chipDummy;
	import descentFly.away3D4.chips.df_chipModel;
	import descentFly.away3D4.chips.df_monster;
	import descentFly.away3D4.controller.df_doorAway;
	import descentFly.away3D4.controller.df_robot;
	import descentFly.away3D4.controller.df_robotAway;
	import descentFly.away3D4.df_awaySpace;
	import descentFly.away3D4.doors.df_door;
	import descentFly.away3D4.doors.df_door3DS;
	import descentFly.away3D4.doors.df_rotateDoor;
	import descentFly.away3D4.exits.df_baseExit;
	import descentFly.controller.FlyController;
	import descentFly.controller.df_robotController;
	import descentFly.controller.myFlyController;
	import descentFly.view.df_view;
	import descentFly.weaponts.df_plasma;
	
	import flash.geom.Vector3D;
	
	
	public class df_levels {
		public static const list: Array = [
			//-----------------------------------------------------LEVEL 1---------------------------------------------				
			{
				Enviroment	: {
					url				: 'data/models/level0.3DS',
					orientation		: [-90, 0, 0]/*,
					fog				: {
					near: 600,
					color: 0x008888
					}*/
				},
				Objects		: [
					{
						Class	: df_chipDummy,
						options	: {
							body: {
								radius: 20
							},
							live: 10,
							weaponts: [
								{
									weapontClass: df_plasma,
									damage: 0.2
								}
							],
							controller	: myFlyController,
							maxSpeed	: 120
						}
					}
				],
				Generator: {
					monsterTmpl: {
						Class		: df_monster,     
						options		: {
							url			: 'data/models/chip_01.3DS',
							live		: 10,
							controller	: df_robot,
							maxSpeed	: 10,
							pathSpeed	: 5,
							modelData	: {
								Actions: [
									{
										name	: df_chipModel.WEAPONT_ACTIVATE_NAME,
										Class	: df_dir,
										objects	: 'wpRight,wpLeft',
										dir		: new Vector3D(0, 0, 20),
										center	: new Vector3D()
									},{
										name	: df_chipModel.WEAPONT_ACTIVATE_NAME,
										Class	: df_dir,
										objects	: 'flap_1,flap_2',
										dir		: new Vector3D(0, 0, 3),
										center	: new Vector3D()
									}
								]
							}
						}
					},
					maxMonsters	: 2,
					periodMLS	: 8000
				},
				Doors: {
					doorTmpl: {
						Class	: df_door3DS,
						options	: {
							url			: 'data/models/door01.3DS',
							nearest		: 150,
							controller	: df_doorAway,
							modelData	: {
								Actions: [
									{
										name	: df_door.ACTION_OPEN_DOOR,
										Class	: df_actionRotate,
										roll	: new Vector3D(0, -45, 0)
									}
								]
							}
						}
					}
				},
				Exits: {
					exitTmpl: {
						Class	: df_baseExit,
						options	: {
							nextLevel	: 1,
							nearest		: 200
						}
					}
				},
				Explodes: [
					{
						filePattern	: 'data/textures/explode/01/exp%d.png',
						frames		: 4
					}
				]
			},
			//-----------------------------------------------------LEVEL 2---------------------------------------------				
			{
				Enviroment	: {
					url				: 'data/models/level1.3DS',
					fog			: {
					near: 600,
					color: 0
					}
				},
				Objects		: [
					{
						Class	: df_chipDummy,
						options	: {
							body: {
								radius: 20
							},
							live: 10,
							weaponts: [
								{
									weapontClass: df_plasma,
									damage: 0.2
								}
							],
							controller	: myFlyController,
							maxSpeed	: 120
						}
					}
				],
				Generator: {
					monsterTmpl: {
						Class		: df_monster,     
						options		: {
							url			: 'data/models/chip_01.3DS',
							live		: 10,
							controller	: df_robot,
							maxSpeed	: 10,
							pathSpeed	: 5,
							modelData	: {
								Actions: [
									{
										name	: df_chipModel.WEAPONT_ACTIVATE_NAME,
										Class	: df_dir,
										objects	: 'wpRight,wpLeft',
										dir		: new Vector3D(0, 0, 20),
										center	: new Vector3D()
									},{
										name	: df_chipModel.WEAPONT_ACTIVATE_NAME,
										Class	: df_dir,
										objects	: 'flap_1,flap_2',
										dir		: new Vector3D(0, 0, 3),
										center	: new Vector3D()
									}
								]
							}
						}
					},
					maxMonsters	: 5,
					periodMLS	: 8000
				},
				Doors: {
					doorTmpl: {
						Class	: df_door3DS,
						options	: {
							url			: 'data/models/door01.3DS',
							nearest		: 150,
							controller	: df_doorAway,
							modelData	: {
								Actions: [
									{
										name	: df_door.ACTION_OPEN_DOOR,
										Class	: df_actionRotate,
										roll	: new Vector3D(0, -45, 0)
									}
								]
							}
						}
					}
				},
				Explodes: [
					{
						filePattern	: 'data/textures/explode/01/exp%d.png',
						frames		: 4
					}
				],
				Background: {
					Class	: df_bgSpace,
					options	: {
						
					}
				}
			}]
	}
}